package com.talent.service;

import org.springframework.beans.factory.annotation.Autowired;

import com.talent.dao.UserDao;


//@Service  
public class TaskJob {  
	
	@Autowired
	private UserDao userDao;
	
    public void updateUserOnlineStatus() { 
//    	Calendar calendar = Calendar.getInstance();
//		calendar.add(Calendar.MINUTE, -2);
//		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
//		String tmp_time = sdf.format(calendar.getTime());
//		userOnlineDao.updateUserOnlineStatus(1,tmp_time);
    	userDao.getUserList();
    }

}  